package per.sunmes.lesrb.action;

import com.badlogic.gdx.scenes.scene2d.Action;

public class CallAction extends Action {
	public Object obj;

	public CallAction() {
	}

	public CallAction(Object obj) {
		this.obj = obj;
	}

	@Override
	public boolean act(float delta) {
		call();
		return true;
	}

	public void call() {
	}

	@Override
	public String toString() {
		if (getTarget() != null) {
			return "CallAction[" + getTarget().getClass().getSimpleName() + "]";
		} else {
			return "CallAction[Null]";
		}
	}
}
